﻿using System;
using System.Collections.Generic;
using System.Text;
using AspNetCs.Model;
using System.Data;
namespace AspNetCs.IDAL
{
  public interface  IVote
    {
      Vote_Model GetModel(DataRow dr);
      Vote_Model GetModel(int id);
      int Add(Vote_Model model);
      int Update(Vote_Model model);
      int Del(int id);
      /// <summary>
      ///根据条件,返回DataSet
      /// </summary>
      /// <param name="filter"> 不要加"WHERE"</param>
      /// <returns></returns>
      DataTable GetDataTable(string filter);


    }
}
